package com.example.prison.service;

import com.example.prison.entity.DefenceArea;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

/**
* @author jiang
* @description 针对表【defence_area】的数据库操作Service
* @createDate 2023-06-02 12:33:20
*/
public interface DefenceAreaService extends IService<DefenceArea> {

    PageInfo<DefenceArea> get(int pageNumber, int pageSize);

    int addDefenceArea(DefenceArea area);

    int addSentryPost(DefenceArea area);

    Integer deleteDefenceArea(Integer[] ids);

    Integer deleteSentryPost(Integer[] ids);

    Integer updateAreaStatus(Integer id, DefenceArea area);

    PageInfo<DefenceArea> getByNumber(int pageNumber, int pageSize, String defenseSection);

    PageInfo<DefenceArea> getByStatus(int pageNumber, int pageSize, String defenseSectionPoint);

}
